-- GENERATED SPELL FOR [Stormspire Nexus-Guard] --


function spell0_19529(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19529', 635, 1)
end

function spell1_19529(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19529', 10338, 1)
end

function spell2_19529(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19529', 5313, 1)
end

function Sorts_19529(pUnit, Event)
local choix_sorts_19529 = math.random(0, 2)
if choix_sorts_19529 == 0 then
pUnit:RegisterEvent('spell0_19529', 1, 1)
end
if choix_sorts_19529 == 1 then
pUnit:RegisterEvent('spell1_19529', 1, 1)
end
if choix_sorts_19529 == 2 then
pUnit:RegisterEvent('spell2_19529', 1, 1)
end
end

function mob19529_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19529', math.random(1500, 3000), 1)
end

function mob19529_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19529_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19529_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19529, 1, 'mob19529_Action')
RegisterUnitEvent(19529, 2, 'mob19529_Leave')
RegisterUnitEvent(19529, 3, 'mob19529_Kill')
RegisterUnitEvent(19529, 4, 'mob19529_Die')
